package cn.kgc.service;

import cn.kgc.pojo.Train;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author: fighting
 * @date: 2022/2/14
 * @description:
 */
public interface TrainService {
    boolean add(Train train);
    boolean add2(Train train);
    List<Train> sel();

    Train selById(@RequestParam("trainId") Integer trainId);

    boolean fuhe(Train train);
    boolean fuhe2(Train train);
    boolean del(Integer trainId);
    Train FKsel(Integer trainId);
    boolean FKupd(Train train);
    Train updsel(Integer trainId);
    boolean upd(Train train);
    String getData(String name);



}
